@document({name: "字符串函数"})
@dslClass({ language: "java", code: "com.inspur.edp.rule.dsl.core.function.StringUtils"})
export class StringUtils {

   @document({name: "截取字符串"})
   public static subString(@document({name:"字符串"}) str:string , @document({name:"开始位置"}) beginIndex : int , @document({name:"截取长度"}) length : int):string ;

   @document({name: "获取长度"})
   public static length( @document({name:"字符串"})  str:string) : int


   @document({name: "是否相等"})
   public static equals( @document({name:"字符串1"})  str1 : string , @document({name:"字符串2"})  str2 : string) : boolean


   @document({name: "包含字符串"})
   public static contains( @document({name:"字符串"}) str:string, @document({name:"要包含的字符串"}) target:string) :boolean ;

   @document({name: "不包含字符串"})
   public static notContains( @document({name:"字符串"}) str : string ,   @document({name:"不包含的字符串"}) target : string) : boolean ;

   @document({name: "开始于"})
   public static startWith( @document({name:"字符串"}) str : string, @document({name:"前缀"}) prefix : string ) : boolean ;

   @document({name: "不开始于"})
   public static notStartWith( @document({name:"字符串"}) str : string ,  @document({name:"前缀"})  prefix : string) : boolean ;

   @document({name: "结束于"})
   public static endWith( @document({name:"字符串"}) str:string,  @document({name:"后缀"}) suffix : string ) : boolean ;

   @document({name: "不结束于"})
   public static notEndWith( @document({name:"字符串"}) str:string,  @document({name:"后缀"}) suffix : string ) : boolean ;

   @document({name: "替换"})
   public static replace(  @document({name:"字符串"}) str : string,  @document({name:"目标字符串"}) target : string , @document({name:"替换为"}) replacement : string) : string ;

   @document({name: "转小写"})
   public static toLowerCase(@document({name:"字符串"}) str : string) : string ;

   @document({name: "转大写"})
   public static toUpperCase(@document({name:"字符串"}) str : string) : string ;

   @document({name: "查找字符串首次匹配位置"})
   public static indexOf( @document({name:"字符串"})  str :string, @document({name:"目标字符串"}) target :string ) : int ;

   @document({name: "查找字符串最后匹配位置"})
   public static  lastIndexOf( @document({name:"字符串"}) str : string , @document({name:"目标字符串"}) target : string ) : int ;

   @document({name: "去掉空格"})
   public static trim( @document({name:"字符串"}) str : string ) : string

   @document({name: "生成唯一标识"})
   public static createGuid() : string

   @document({name: "是空串"})
   public static isEmpty( @document({name:"字符串"})  str : string ) : boolean ;

   @document({name: "是空串"})
   public static isNumStr(@document({name:"字符串"}) str :string ) : boolean ;

   @document({name: "拼接字符串"})
   public static concat( @document({name:"字符串1"}) str1 : any , @document({name:"字符串2"}) str2 : any) : string ;

   @document({name: "拼接3个字符串"})
   public static concat3( @document({name:"字符串1"}) str1 : any , @document({name:"字符串2"}) str2 : any , @document({name:"字符串3"}) str3 : any) : string ;

   @document({name: "拼接4个字符串"})
   public static concat4( @document({name:"字符串1"}) str1 : any , @document({name:"字符串2"}) str2 : any , @document({name:"字符串3"}) str3 : any, @document({name:"字符串4"}) str4 : any) : string ;

   @document({name: "拼接5个字符串"})
   public static concat5( @document({name:"字符串1"}) str1 : any , @document({name:"字符串2"}) str2 : any , @document({name:"字符串3"}) str3 : any, @document({name:"字符串4"}) str4 : any, @document({name:"字符串5"}) str5 : any) : string ;

}